//
//  NSTimer+HTTimer.m
//  HeartTravel
//
//  Created by lanou on 15/10/30.
//  Copyright © 2015年 陈文杰. All rights reserved.
//

#import "NSTimer+HTTimer.h"

@implementation NSTimer (HTTimer)

- (void)pauseTimer {
    
    if (![self isValid]) {
        return;
    }
    [self setFireDate:[NSDate distantFuture]];
}

- (void)resumeTimer {
    
    if (![self isValid]) {
        return;
    }
    //[self setFireDate:[NSDate dateWithTimeIntervalSinceNow:0]];
    [self setFireDate:[NSDate date]];
}

@end
